package com.zxp.server.feign;


import com.zxp.server.config.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author 朱艺超
 * @version 2022.0816
 */
@FeignClient(value = "FILE-SERVER")
public interface  FeignServer {

  @RequestMapping(value = "/file/saveFile",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
  public Result PostFile(MultipartFile file);

}
